﻿@using Telerik.Web.Mvc
@using Telerik.Web.Mvc.UI
@{
    ViewBag.subtitle = "图片上传管理";
    ViewBag.title = "图片上传管理";
    Layout = "~/Views/Shared/_Layout.cshtml";
    var strSelected = (Request["selected"] != null ? Request["selected"] : "0");
    var selected = 0;
    int.TryParse(strSelected, out selected);
    if (selected > 3)
    {
        selected = 0;
    }
}
<script src="@Url.Content("~/Scripts/JsHelper.js")" type="text/javascript"></script>
@{ Html.Telerik().TabStrip()
        .Name("PicUploadTabStrip")
        .Items(tabstrip =>
        {
            tabstrip.Add()
                .Text("景点图片上传")
                .Content(@<text>
    @Html.Partial("_SightPointPicUpload")
    </text>);

            tabstrip.Add()
                .Text("线路图片上传")
                .Content(@<text>
    @Html.Partial("_TourPicUpload")
    </text>);

            tabstrip.Add()
                .Text("商品图片上传")
                .Content(@<text>
    @Html.Partial("_GoodsPicUpload")
    </text>);
        }).SelectedIndex(selected)
        .Render();
}

